package com.eonmind.pay.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@AllArgsConstructor
@Getter
@ToString
public enum WxApiEnum {

    //微信下单
    TRANSACTION_API("/pay/transactions/native"),

    //根据微信支付订单号查单
    QUERY_ID_API("/pay/transactions/id/%s"),

    //根据商户订单号查单
    QUERY_TRADE_API("/pay/transactions/out-trade-no/%s"),

    //根据商户订单号关闭未支付订单
    CLOSE_API("/pay/transactions/out-trade-no/%s/close"),

    //微信退款
    REFUND_API("/refund/domestic/refunds"),

    //查询单笔退款(通过商户退款单号)
    QUERY_REFUND_API("/refund/domestic/refunds/%s"),

    //发起异常退款
    ABNORMAL_REFUND_API("/refund/domestic/refunds/%s/apply-abnormal-refund"),

    //申请交易订单
    TRADE_BILL_API("/bill/tradebill"),

    //申请资金账单
    FUND_BILL_API("/bill/fundbill"),

    //申请退款账单
    REFUND_BILL_API("/bill/fundflowbill");

    private final String url;

}
